<VirtualHost *:<%= @options["secure"] ? '443' : '80' %>>
<% if @options["secure"] %>
   SSLEngine on
   SSLCertificateFile /etc/apache2/ssl.crt/<%= HOSTNAME %>-ca.crt
   SSLCertificateKeyFile /srv/Portus/config/server.key
<% end %>

   DocumentRoot /srv/Portus/public
   <Directory /srv/Portus/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
      # Uncomment this if you're on Apache >= 2.4:
      Require all granted
      SetEnv GEM_PATH /srv/Portus/vendor/bundle/ruby/2.1.0
      SetEnv PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
      SetEnv PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
      PassengerAppEnv production
   </Directory>
</VirtualHost>
